package com.pig4cloud.pig.page.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.Month;


// @TableField 注解，明确映射数据库字段名

@Data
public class TrInquire {
	@TableId(value = "inquire_id", type = IdType.ASSIGN_ID)
	@TableField("inquire_id")
	@Schema(description = "咨询id")
	private Long inquireId;

	@TableId(value = "inquire_number")
	@TableField("inquire_number")
	@Schema(description = "咨询号")
	private Long inquireNumber;

	@TableId(value = "cus_id")
	@TableField("cus_id")
	@Schema(description = "客户id")
	private Long cusId;

	@Schema(description = "出行人数")
	@TableField("count_person")
	private Integer countPerson;

	@Schema(description = "意向目的地")
	@TableField("intended_dest")
	private String intendedDest;

	@Schema(description = "预计出发时间")
	@TableField("go_time")
	private String goTime;

	@Schema(description = "可调整时间")
	@TableField("adjust_time")
	private String adjustTime;

	@Schema(description = "计划天数")
	@TableField("plan_days")
	private Integer planDays;

	@Schema(description = "预算")
	@TableField("money")
	private BigDecimal money;

	@TableId(value = "user_id")
	@TableField("user_id")
	@Schema(description = "预定师id")
	private Long userId;

	@Schema(description = "备注")
	@TableField("remark")
	private String remark;
	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建人")
	private String createBy;
	/**
	 * 修改人
	 */
	@TableField(fill = FieldFill.UPDATE)
	@Schema(description = "修改人")
	private String updateBy;
	/**
	 * 创建时间
	 */
	@Schema(description = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;
	/**
	 * 修改时间
	 */
	@Schema(description = "修改时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

	@Schema(description = "月份")
	private String month;
}
